<?
//加载缓存配置信息
$tmp = array();
$list = $db->query_row("select * from config",MYSQL_ASSOC);
while (list(,$value) = each($list)) {
	$para[$value["key"]] = $value["value"];
}
unset($tmp);
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
	while (list($key,) = each($para)) {
		if(isset($_POST[$key]))
		{
			$para[$key] = $_POST[$key]==''?'#':$_POST[$key];
			
			$db->query("update config set `value` = '{$para[$key]}' where `key` = '$key'");
		}
	}
	cache_delete("config.php");
}
?>

<table class="AthenaManage" >
  <tr>
	<td Id="ManageTip">内容列表</td>
	<td Id="ManageContent"></td>
  </tr>
  <tr>
	<td colspan="2" Id="ManageBg">
	<table  border="0" cellpadding="0" cellspacing="1" >
	  <tr><td height="8"></td></tr>
	</table>
	<table Class="AthenaManageTable" Id="AthenaManageTable">
	  <form name="frmList" method="POST" action="?Model=<?=$Athena_Model?>">
	  <tr>
	    <td colspan="2" style="text-align:center;background-color:#EBEFF2">基本设置</td>
	  </tr>
	  <tr>
	    <td width="200">学校名称</td>
	    <td><input type="text" name="school_name" class="INPUTTEXT" value="<?=$para['school_name']?>" /></td>
	  </tr>
	  <tr>
	    <td>生成Html</td>
	    <td><input type="radio" name="school_html" value="0" checked>否 &nbsp;<input type="radio" name="school_html" value="1" <?=$para["school_html"]=="1"?"checked":''?>>是</td>
	  </tr>
	  <tr>
	    <td>生成文件扩展名</td>
	    <td><select name="school_html_ext" style="width:100px;"><option value="html">html</option><option value="htm" <?=$para["school_html_ext"]=="htm"?"selected":""?>>htm</option></select></td>
	  </tr>
	  <tr>
	    <td>Title（网站标题）</td>
	    <td><input type="text" name="school_title" class="INPUTTEXT" value="<?=$para['school_title']?>" /></td>
	  </tr>
	  <tr>
	    <td>Meta Keywords（网页关键词）</td>
	    <td><input type="text" name="school_keyword" class="INPUTTEXT" value="<?=$para['school_keyword']?>" /></td>
	  </tr>
	  <tr>
	    <td>Meta Description（网页描述）</td>
	    <td>
	    	<textarea name="school_descriptioin" style="width:400px;height:50px;"><?=$para['school_descriptioin']?></textarea></td>
	  	</tr>
	  <tr>
	    <td>站长信箱</td>
	    <td><input type="text" name="school_mail" class="INPUTTEXT" value="<?=$para['school_mail']?>" /></td>
	  </tr>
	  <tr>
	    <td>网站ICP备案序号</td>
	    <td><input type="text" name="school_icp" class="INPUTTEXT" value="<?=$para['school_icp']?>" /></td>
	  </tr>
	  <tr>
	    <td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="2" style="text-align:center;background-color:#EBEFF2">一级栏目链接</td>
	  </tr>
	  <tr>
	    <td>人才培养</td>
	    <td><input type="text" name="school_catalog_one2" class="INPUTTEXT" value="<?=$para['school_catalog_one2']?>" /></td>
	  </tr>
	  <tr>
	    <td>科研教研 </td>
	    <td><input type="text" name="school_catalog_one3" class="INPUTTEXT" value="<?=$para['school_catalog_one3']?>" /></td>
	  </tr>
	  <tr>
	    <td>招生就业</td>
	    <td><input type="text" name="school_catalog_one4" class="INPUTTEXT" value="<?=$para['school_catalog_one4']?>" /></td>
	  </tr>
	  <tr>
	    <td>继续教育</td>
	    <td><input type="text" name="school_catalog_one5" class="INPUTTEXT" value="<?=$para['school_catalog_one5']?>" /></td>
	  </tr>
	  <tr>
	    <td>人才招聘</td>
	    <td><input type="text" name="school_catalog_one6" class="INPUTTEXT" value="<?=$para['school_catalog_one6']?>" /></td>
	  </tr>
	  <tr>
	    <td>国际合作</td>
	    <td><input type="text" name="school_catalog_one7" class="INPUTTEXT" value="<?=$para['school_catalog_one7']?>" /></td>
	  </tr>
	  <tr>
	    <td>校企合作 </td>
	    <td><input type="text" name="school_catalog_one8" class="INPUTTEXT" value="<?=$para['school_catalog_one8']?>" /></td>
	  </tr>
	  <tr>
	    <td>学工在线</td>
	    <td><input type="text" name="school_catalog_one9" class="INPUTTEXT" value="<?=$para['school_catalog_one9']?>" /></td>
	  </tr>
	  <tr>
	    <td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="2" style="text-align:center;background-color:#EBEFF2">专业网站</td>
	  </tr>
	  <tr>
	    <td>思政网</td>
	    <td><input type="text" name="school_catalog_tow1" class="INPUTTEXT" value="<?=$para['school_catalog_tow1']?>" /></td>
	  </tr>
	  <tr>
	    <td>文化艺术</td>
	    <td><input type="text" name="school_catalog_tow2" class="INPUTTEXT" value="<?=$para['school_catalog_tow2']?>" /></td>
	  </tr>
	  <tr>
	    <td>校史网</td>
	    <td><input type="text" name="school_catalog_tow3" class="INPUTTEXT" value="<?=$para['school_catalog_tow3']?>" /></td>
	  </tr>
	  <tr>
	    <td>校友会</td>
	    <td><input type="text" name="school_catalog_tow4" class="INPUTTEXT" value="<?=$para['school_catalog_tow4']?>" /></td>
	  </tr>
	  <tr>
	    <td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="2" style="text-align:center;background-color:#EBEFF2">快速通道</td>
	  </tr>               
	  <tr>
	    <td>南铁青年</td>
	    <td><input type="text" name="school_catalog_three1" class="INPUTTEXT" value="<?=$para['school_catalog_three1']?>" /></td>
	  </tr>
	  <tr>
	    <td>院报在线</td>
	    <td><input type="text" name="school_catalog_three2" class="INPUTTEXT" value="<?=$para['school_catalog_three2']?>" /></td>
	  </tr>
	  <tr>
	    <td>精品课程</td>
	    <td><input type="text" name="school_catalog_three3" class="INPUTTEXT" value="<?=$para['school_catalog_three3']?>" /></td>
	  </tr>
	  <tr>
	    <td>图书资源</td>
	    <td><input type="text" name="school_catalog_three4" class="INPUTTEXT" value="<?=$para['school_catalog_three4']?>" /></td>
	  </tr>
	  <tr>
	    <td>数字校园</td>
	    <td><input type="text" name="school_catalog_three5" class="INPUTTEXT" value="<?=$para['school_catalog_three5']?>" /></td>
	  </tr>
	  <tr>
	    <td>网络服务</td>
	    <td><input type="text" name="school_catalog_three6" class="INPUTTEXT" value="<?=$para['school_catalog_three6']?>" /></td>
	  </tr>
	  <tr>
	    <td>党政公务</td>
	    <td><input type="text" name="school_catalog_three7" class="INPUTTEXT" value="<?=$para['school_catalog_three7']?>" /></td>
	  </tr>
	  <tr>
	    <td>校外VPN</td>
	    <td><input type="text" name="school_catalog_three8" class="INPUTTEXT" value="<?=$para['school_catalog_three8']?>" /></td>
	  </tr>
	  <tr>
	    <td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td>浦口校区</td>
	    <td><input type="text" name="school_catalog_three9" class="INPUTTEXT" value="<?=$para['school_catalog_three9']?>" /></td>
	  </tr>
	  <tr>
	    <td>苏州校区</td>
	    <td><input type="text" name="school_catalog_three10" class="INPUTTEXT" value="<?=$para['school_catalog_three10']?>" /></td>
	  </tr>
	  
	  <tr>
	    <td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td colspan="2" style="text-align:center;background-color:#EBEFF2">其它设置</td>
	  </tr>  
	  <tr>
	    <td>院长信箱</td>
	    <td><input type="text" name="etc_mail_1" class="INPUTTEXT" value="<?=$para['etc_mail_1']?>" /></td>
	  </tr>
	  <tr>
	    <td>书记信箱</td>
	    <td><input type="text" name="etc_mail_2" class="INPUTTEXT" value="<?=$para['etc_mail_2']?>" /></td>
	  </tr>
	  <tr>
	    <td>旧版回顾</td>
	    <td><input type="text" name="school_old" class="INPUTTEXT" value="<?=$para['school_old']?>" /></td>
	  </tr>
	  <tr>
	    <td colspan="2" style="text-align:center;height:30px;"><input id="delete" type="image" src="images/save.jpg" width="78" height="25" border="0" onclick="AppendCmd('save')"></td>
	  </tr>
	  </form>
	</table></td>
  </tr>
  <tr>
	<td colspan="2" Id="ManageBottom">&nbsp;</td>
  </tr>
</table>
<br>